package com.example.shiweilong.myactivity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    private Button btnTiaoZhuan;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btnTiaoZhuan = findViewById(R.id.btn_tiaozhuan);
        btnTiaoZhuan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                /*跳转到main2activity的页面*/
                Intent intent = new Intent(MainActivity.this,Main2Activity.class);
                startActivity(intent);
            }
        });
    }
}
